From: Jan Beulich Date: Thu, 11 Jun 2015 09:58:29 +0000 (+0200) Subject: EFI/ARM: don't treat EfiBootServices{Code,Data} as normal RAM under /mapbs X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3109 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=44a84eac301fba0f5f4f430d8f81929ee22b1187;p=xen.git EFI/ARM: don't treat EfiBootServices{Code,Data} as normal RAM under /mapbs Signed-off-by: Jan Beulich Acked-by: Ian Campbell --- diff --git a/xen/arch/arm/efi/efi-boot.h b/xen/arch/arm/efi/efi-boot.h index 2a7aa13707..6a12d91c18 100644 --- a/xen/arch/arm/efi/efi-boot.h +++ b/xen/arch/arm/efi/efi-boot.h @@ -132,9 +132,10 @@ static EFI_STATUS __init efi_process_memory_map_bootinfo(EFI_MEMORY_DESCRIPTOR * for ( Index = 0; Index < (mmap_size / desc_size); Index++ ) { - if ( desc_ptr->Type == EfiConventionalMemory - || desc_ptr->Type == EfiBootServicesCode - || desc_ptr->Type == EfiBootServicesData ) + if ( desc_ptr->Type == EfiConventionalMemory || + (!map_bs && + (desc_ptr->Type == EfiBootServicesCode || + desc_ptr->Type == EfiBootServicesData)) ) { if ( i >= NR_MEM_BANKS ) {